package interface接口;

public class dog extends anmals implements swim{
    //子类需要加上无参和全参结构体
    public dog() {
    }

    public dog(int age, String name) {
        super(age, name);
    }

    @Override
    public void eat() {
        System.out.println("狗在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("狗在狗刨泳");
    }
}
